package com.atguigu.springboot.service;

import com.atguigu.springboot.properties.RobotProperties;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class RobotService {

    @Resource
    RobotProperties robotProperties;

    public String sayHello(){
        return "你好：名字：【"+robotProperties.getName()+"】;年龄：【"+robotProperties.getAge()+"】";
    }
}